package shupaiwen;
import java.io.IOException;
import java.net.URLDecoder;
public class Function {
	public Function(){
	}
	public static void preview() throws IOException{
		//lunix系统上的文件路径
		String str = (""+Function.class.getResource("intro.txt")).substring(5);
//		windows系统上的文件路径
		if(str.charAt(0)==':')
			 str=str.substring(1);
		//将路径中的utf-8的中文编码转成汉字
		str = URLDecoder.decode(str);
		System.out.println("以下为列与列无空格\n");
		//读入时并转换成了竖排文字
		String str1 = ReadinWriteout.readIn(str, 10,0,"utf-8");
		System.out.println(str1);
		System.out.println("以下为列与列有空格\n");
		String str2 = ReadinWriteout.readIn(str, 10,1,"utf-8");
		System.out.println(str2);
	}
	public static void transform() throws IOException{
	}
}
